package com.example.flyweight;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;

public class MainActivity {

    public static void main(String[] args) {
        Goods goods = GoodsFactory.getGoods("iphone 7");
        goods.showGoodsPrice("32G");
        goods = GoodsFactory.getGoods("iphone 7");
        goods.showGoodsPrice("32G");
        goods = GoodsFactory.getGoods("iphone 7");
        goods.showGoodsPrice("128G");
    }
}